package com.cg.mapper;

import com.cg.entity.Event;
import com.cg.entity.EventCategoryName;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EventMapper {

    int insertEvent(Event event);

    List<EventCategoryName> selectList(String account);
    Event selectone(int id);
    int update(Event event);
    int delete(int id);

    List<Event>selectA(@Param("categoryId")int categoryId,@Param("createdBy")String createdBy);

    List<Event>selectListByDateDesc( String username);
    List<EventCategoryName>selectLike(@Param("createdBy") String createdBy,
                          @Param("categoryId") Integer categoryId,
                          @Param("title") String title,
                          @Param("level") Integer level,
                          @Param("status") Integer status);
}
